package com.example.archermind.myapplication;

import android.os.Bundle;
import android.os.RemoteException;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class DelAllNotificationActivity extends BaseActivity {


    @BindView(R.id.et_packageName)
    EditText etPackageName;
    @BindView(R.id.btn_delAllNotification)
    Button btnDelAllNotification;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_del_all_notification);
        unbinder = ButterKnife.bind(this);
    }

    @OnClick(R.id.btn_delAllNotification)
    public void onViewClicked(View view){
        Log.d(TAG,"del all notification");
        try {
            getNotificationService().delAllNotification(etPackageName.getText().toString());
        } catch (RemoteException e) {
            e.printStackTrace();
        }
    }
}
